package org.bees.cms.core.content;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

import org.bees.cms.core.Describable;
import org.bees.cms.core.Domain;
import org.bees.cms.core.Named;

@MappedSuperclass
public abstract class Content extends Domain implements Named, Describable {
	private static final long serialVersionUID = 8170539415441672919L;

	protected String name;
	protected String description;

	@Column(length = 24, nullable = false, unique = true)
	@Override
	public String getName() {
		return name;
	}

	@Override
	public void setName(String name) {
		this.name = name;
	}

	@Column(length = 120)
	@Override
	public String getDescription() {
		return description;
	}

	@Override
	public void setDescription(String description) {
		this.description = description;
	}

}
